package Week5;

public class PointBuffer extends Circle {
	//A point buffer is defined with a point and a radius.
	//A point buffer has same characteristics as a circle.
	
	private Point p;
	
	public PointBuffer(Point p, double rad) {
		super(rad);
		this.p = p;
	}
	
	//if the radius of the circle > than the distance from p to the userPoint then the userPoint
	//is inside the buffer
	public boolean isInside(Point userPoint){
		if (rad > p.getDistance(userPoint)){
			return true;
		}
		else
			return false;
	}
}
